﻿CREATE TABLE [dbo].[FaltData] (
    [Id]             UNIQUEIDENTIFIER NOT NULL,
    [ValId]          UNIQUEIDENTIFIER NOT NULL,
    [FaltId]         UNIQUEIDENTIFIER NOT NULL,
    [BlankettPostId] UNIQUEIDENTIFIER NOT NULL,
    [Data]           NVARCHAR (MAX)   NULL,
    [RadIndex]       INT              CONSTRAINT [DF__tmp_ms_xx__RadIn__0B5CAFEA] DEFAULT ((0)) NOT NULL,
    CONSTRAINT [PK_FaltData] PRIMARY KEY CLUSTERED ([Id] ASC, [ValId] ASC),
    CONSTRAINT [FK_FaltData_ToBlankettPost] FOREIGN KEY ([BlankettPostId], [ValId]) REFERENCES [dbo].[BlankettPost] ([Id], [ValId]),
    CONSTRAINT [FK_FaltData_ToFalt] FOREIGN KEY ([FaltId], [ValId]) REFERENCES [dbo].[Falt] ([Id], [ValId])
);


